package org.ru.mse10.cvis.entity.misc;

import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.ru.mse10.cvis.entity.cv.Address;

/**
 * The Class AddressDateRange.
 */
@Entity
@Table(name = "address_date_range")
public class AddressDateRange extends DateRange {

	/** The address. */
	private Address address;

	/**
	 * Gets the address.
	 * 
	 * @return the address
	 */
	@OneToOne
	public Address getAddress() {
		return address;
	}

	/**
	 * Sets the address.
	 * 
	 * @param address
	 *            the new address
	 */
	public void setAddress(Address address) {
		this.address = address;
	}

}
